﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ZXW.DotNet.Common.Basic.Network.Tcp
{
    /// <summary>
    /// 网络通讯事件
    /// </summary>
    public class CommunicationEventArgs : EventArgs
    {
        private Session _client;
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="session">客户端会话</param>
        public CommunicationEventArgs(Session client)
        {
            //if (client == null)
            //    throw (new ArgumentNullException());
            _client = client;
        }

        public Session Client
        {
            get
            {
                return _client;
            }
        }
    }
}
